﻿@page "/auth-redirect"
@inject AuthenticationStateService AuthService

@code {
    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        if (firstRender)
        {
            await AuthService.RedirectIfNotAuthenticatedAsync();
        }
    }
}